
package com.example.cxf.client2.generate.com.example.cxf.service2;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import com.example.cxf.client2.generate.com.example.cxf.service2.HelloWorld_Service;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 3.3.11
 * 2021-10-07T19:42:16.924+08:00
 * Generated source version: 3.3.11
 *
 */
public final class HelloWorld_HelloWorldImplPort_Client {

    private static final QName SERVICE_NAME = new QName("http://service2.cxf.example.com/", "HelloWorld");

    private HelloWorld_HelloWorldImplPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = HelloWorld_Service.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) {
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }

        HelloWorld_Service ss = new HelloWorld_Service(wsdlURL, SERVICE_NAME);
        HelloWorld port = ss.getHelloWorldImplPort();

        {
        System.out.println("Invoking sayHiToUserList...");
        java.util.List<com.example.cxf.service2.User> _sayHiToUserList_arg0 = null;
        java.util.List<java.lang.String> _sayHiToUserList__return = port.sayHiToUserList(_sayHiToUserList_arg0);
        System.out.println("sayHiToUserList.result=" + _sayHiToUserList__return);


        }
        {
        System.out.println("Invoking sayHiToUser...");
            com.example.cxf.client2.generate.com.example.cxf.service2.User _sayHiToUser_arg0 = null;
        java.lang.String _sayHiToUser__return = port.sayHiToUser(_sayHiToUser_arg0);
        System.out.println("sayHiToUser.result=" + _sayHiToUser__return);


        }
        {
        System.out.println("Invoking sayHi...");
        java.lang.String _sayHi_text = "";
        java.lang.String _sayHi__return = port.sayHi(_sayHi_text);
        System.out.println("sayHi.result=" + _sayHi__return);


        }

        System.exit(0);
    }

}
